/*
 * fun_board.c
 *
 *  Created on: 2014-4-7
 *      Author: Rome
 */
#include "fun_board.h"
#include "bank_iic.h"

void ReadBoardStatus(alt_u8 *Pbuf)
{
	alt_u16 address;
	alt_u32 i;

	for(i = 0; i < 16; i ++)
	{
		address = i << 12;
		*(Pbuf + i * 2) = BANK_AT24C16_R(address);
		address = (i << 12) + 1;
		*(Pbuf + i * 2 + 1) = BANK_AT24C16_R(address);
	}
}

